package com.woniu03;

import java.io.File;

public class Test03 {
    public static void main(String[] args) {

        String Path = "d:\\aaa";
        showDirectory(Path);
    }

    public static void showDirectory(String path){
        File file=new File(path);
        File[] files=file.listFiles();
        for(File myFile:files){
            if(myFile.isFile()){
                System.out.println(myFile.getAbsolutePath());
            }else if(myFile.isDirectory()){
                System.out.println(myFile.getAbsolutePath());
                showDirectory(myFile.getAbsolutePath());
            }
        }
    }
}
